package com.jxc.util;

import java.util.HashSet;
import java.util.Properties;
import java.util.Set;

import org.springframework.context.ApplicationContext;

import com.jxc.aop.LogRef;


public class Application  {

    private static Application instance = null;

    private Properties properties = new Properties();
    private String applicationRealPath;
    private ApplicationContext applicationContext;
    private String applicationContextName;
    public Set<LogRef> getLogRefs() {
		return logRefs;
	}

	public void setLogRefs(Set<LogRef> logRefs) {
		this.logRefs = logRefs;
	}


	private Set<LogRef> logRefs = new HashSet<LogRef>();
    
    public String getApplicationContextName() {
        return applicationContextName;
    }

    public void setApplicationContextName(String applicationContextName) {
        this.applicationContextName = applicationContextName;
    }

    public static synchronized Application getInstance() {
        if(instance == null){
        	instance = new Application();
        }
        return instance;
    }

    public Properties getProperties() {
        return properties;
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }

    public String getApplicationRealPath() {
        return applicationRealPath;
    }

    public void setApplicationRealPath(String applicationRealPath) {
        this.applicationRealPath = applicationRealPath;
    }

    public ApplicationContext getApplicationContext() {
        return this.applicationContext;
    }

    public void setApplicationContext(ApplicationContext applicationContext) {
    	this.applicationContext = applicationContext;
    }
}
